home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / intlib / int_algorithm_proc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-01-21  |  688 b   |  37 lines

  1. /*
  2. ### selecting an integration algorithm ###
  3. */
  4.  
  5. #include <suntool/sunview.h>
  6. #include <suntool/panel.h>
  7. #define STANDARD 0
  8. #define TIME    1
  9. #define QC    2
  10. #define SYMP_START 2
  11. #define SYMP_END 5
  12.  
  13. void 
  14. int_algorithm_proc(item,value,event)
  15. Panel_item      item;
  16. int             value;
  17. Event          *event;
  18. {
  19.         extern int symp_int_on,int_driver,int_algorithm;
  20.  
  21.         int_algorithm = value;
  22.     if(int_driver == STANDARD || int_driver == TIME){
  23.         if(int_algorithm >=  SYMP_START && int_algorithm <= SYMP_END) {
  24.             symp_int_on = 1;
  25.         }
  26.         else {
  27.             symp_int_on = 0;
  28.         }
  29.     }
  30.     else if(int_driver == QC ){
  31.         symp_int_on = 0;
  32.     }
  33.     (void) destroy_int_windows();
  34.     (void) create_int_windows();
  35. }
  36.  
  37.